<?php

$this->breadcrumbs = array(
	$model->label(2) => array('index'),
	GxHtml::valueEx($model),
);

$this->menu=array(
	array('label'=>Yii::t('app', 'List') . ' ' . $model->label(2), 'url'=>array('index'), 'visible'=>!Yii::app()->user->isGuest ),
	array('label'=>Yii::t('app', 'Create') . ' ' . $model->label(), 'url'=>array('create'), 'visible'=>!Yii::app()->user->isGuest ),
	array('label'=>Yii::t('app', 'Update') . ' ' . $model->label(), 'url'=>array('update', 'id' => $model->id), 'visible'=>!Yii::app()->user->isGuest ),
	array('label'=>Yii::t('app', 'Delete') . ' ' . $model->label(), 'url'=>'#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm'=>'Are you sure you want to delete this item?'), 'visible'=>!Yii::app()->user->isGuest ),
	array('label'=>Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url' => array('admin'), 'visible'=>!Yii::app()->user->isGuest ),
// Or with more advanced security:
//	array('label'=>Yii::t('app', 'List') . ' ' . $model->label(2), 'url'=>array('index'), 'visible' => Yii::app()->user->checkAccess('SettingIndex') ),
//	array('label'=>Yii::t('app', 'Create') . ' ' . $model->label(), 'url'=>array('create'), 'visible' => Yii::app()->user->checkAccess('SettingCreate') ),
//	array('label'=>Yii::t('app', 'Update') . ' ' . $model->label(), 'url'=>array('update', 'id' => $model->id), 'visible'=>Yii::app()->user->checkAccess('SettingUpdate') ),
//	array('label'=>Yii::t('app', 'Delete') . ' ' . $model->label(), 'url'=>'#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm'=>'Are you sure you want to delete this item?'), 'visible'=>Yii::app()->user->checkAccess('SettingDelete') ),
//	array('label'=>Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url'=>array('admin'), 'visible' => Yii::app()->user->checkAccess('SettingAdmin') ),
);
$this->layout = '//layouts/column1';
?>

<h1 class="subheader"><?php echo Yii::t('app', 'View') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?></h1>

<?php // Uncomment the following to secure access: 
// if (!Yii::app()->user->checkAccess('SettingView')) { echo 'Access Denied'; die; } ?>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data' => $model,
	'attributes' => array(
'id',
'name',
'value',
'group',
'datatype',
'updated_at',
	),
	'tagName' => 'div',
	'htmlOptions' => array('class'=>'row detailView panel radius'),
//	'itemCssClass' => '',
	'itemTemplate' => '<div class="{class} small-4 columns"><label>{label}</label><span>{value}<br /></span></div>',
)); ?>

